package com.nt.test.dao;

import com.nt.test.entity.User;
import com.nt.test.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class UserDao {

    @Autowired
    private UserMapper userMapper;

    public List<User> listUser(String username){
        return userMapper.findByUsername(username);
    };
}
